using Microsoft.AspNetCore.Builder;
using Ocelot.DependencyInjection;
using Ocelot.Middleware;
using Ocelot.Provider.Consul;
using Ocelot.Provider.Polly;

namespace OcelotGatewayProj
{
    class Program
    {
        static void Main(string[] args)
        {
            WebApplicationBuilder? builder = WebApplication.CreateBuilder(args);

            builder.Services.AddOcelot().AddConsul().AddPolly();//.AddConfigStoredInConsul();
            WebApplication? app = builder.Build();
            app.UseOcelot().Wait();
            app.Run();

        }
    }
}